package com.iotechn.unimall.data.domain;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;
import java.util.Date;

/**
 * 
 * 
 * @author hct
 * @email 77802226@qq.com
 * @date 2020-04-18 13:19:23
 */

@Data
@TableName("unimall_sku_colonel")
public class SkuColonelDO extends SuperDO implements Comparable<SkuColonelDO>{

	/**
	 * 
	 */
	/**
	 * 级别id
	 */
    @TableField("level_id")
    private Long levelId;
	/**
	 * 级别名称
	 */
    @TableField("level_name")
    private String levelName;

	/**
	 * 级别名称
	 */
	@TableField("level_money")
	private Integer levelMoney;

	/**
	 * 级别提成
	 */
    @TableField("level_rate")
    private Integer levelRate;
	/**
	 * 
	 */
    @TableField("gmt_update")
    private Date gmtUpdate;
	/**
	 * 
	 */
	@TableField("gmt_create")
	private Date gmtCreate;
	/**
	 * 对应sku
	 */
    @TableField("sku_id")
    private Long skuId;


	@TableField("bar_code")
	private String barCode;


	@Override
	public int compareTo(SkuColonelDO o) {
		int i=this.getLevelMoney()-o.getLevelMoney();
		return i;
	}
}
